import request from '@/utils/request'

// 获取登录数据
// export const loginAPI=data=>request.post('http://localhost:8888/api/sys/login')
export const loginAPI = (data) => {
  return request({
    url: '/sys/login',
    method: 'post',
    data
  })
}

// 获取用户资料
export const getUserInfoApi = () => {
  return request({
    url: '/sys/profile',
    method: 'post'
  })
}

// 获取用户基本信息
export const getBaseUserInfoApi = (id) => {
  return request({
    url: `/sys/user/${id}`,
    method: 'get'
  })
}
